package com.axxc.cloud;

import org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Import;
import org.springframework.transaction.annotation.EnableTransactionManagement;

import com.axxc.cloud.common.config.MasterDataSourceConfig;
import com.axxc.cloud.common.config.SlaveDataSourceConfig;

@Import(value = { MasterDataSourceConfig.class, SlaveDataSourceConfig.class })
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class ,MybatisAutoConfiguration.class})
@EnableTransactionManagement
public class BootDynamicDatasourceApplication {

	public static void main(String[] args) {
		SpringApplication.run(BootDynamicDatasourceApplication.class, args);
	}

}
